package com.cy.sys.web.controller;

import com.cy.sys.pojo.SysNotice;
import com.cy.sys.service.SysNoticeService;
import com.cy.sys.web.pojo.JsonResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/notice/")
public class SysNoticeController {
    @Autowired
    private SysNoticeService sysNoticeService;

    @GetMapping
    public JsonResult doFindNotices(SysNotice sysNotice){
        return new JsonResult(sysNoticeService.findNotices(sysNotice));
    }
}
